package com.punch.common.vo.course;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * CoursePageVO-课程列表信息 展示vo
 *
 * @author xiaol
 * @version 1.0.0
 * @since 2020/7/14 10:51
 */
@Data
public class GoodsPageVO implements Serializable {

    @ApiModelProperty(name = "goodsId", notes = "课程主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long goodsId;


    @ApiModelProperty(name = "coverImg", notes = "商品图片")
    private String coverImg;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "goodsName", notes = "商品名称")
    private String goodsName;

    /**
     * 分类 0-教材 1-教具
     */
    @ApiModelProperty(name = "goodsType", notes = "分类 0-教材 1-教具")
    private Integer goodsType;

    /**
     * 销价
     */
    @ApiModelProperty(name = "goodsPrice", notes = "销价")
    private BigDecimal goodsPrice;

    /**
     * 销量
     */
    @ApiModelProperty(name = "salesVolume", notes = "销量")
    private Integer salesVolume;

    /**
     * 库存
     */
    @ApiModelProperty(name = "inventory", notes = "库存")
    private Integer inventory;


    /**
     * 状态  0：下架  1：上架
     */
    @ApiModelProperty(name = "status", notes = "状态  0：下架  1：上架")
    private Integer status;

}
